window.onload = function () {
    $("#errorMessageId").text(JSON.parse(localStorage.getItem("result")).errorMessage);
};